import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//导入axios
import axios from "@/api/http"
//将axios放在vue的原型上,属性$http
Vue.prototype.$http = axios;
//this.$http.get   等价于    axios.get


//将事件中心建立好之后放在Vue原型上，避免使用一次就new一次
Vue.prototype.$eventBus = new Vue();
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')